<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="content">{{message}}</div>
    <br>
    <!-- propsData Option  全局扩展的数据传递 -->
    <div id="demo1"></div>
    <script src="vue.min.2.4.js"></script>
    <script>
        var vm=new Vue({
            el:'#content',
            data:{
                message:'hello world'
            }
        })
        
        var demo_a=Vue.extend({
            template:'<p>{{myData}}</p>',
            data:function(){
                return {
                    myData:'propsData Option  全局扩展的数据传递'
                }
            }
        })
        new demo_a().$mount('#demo1');
    </script>
</body>
</html>